package com.t209.hibernatelearn.dao;

import com.t209.hibernatelearn.entity.Dept;

import java.io.Serializable;

public class DeptDao extends BaseDao{
    public Dept get(Serializable id){
        return (Dept)currentSession().get(Dept.class,id);
    }
    //id查询
    public Dept load(Serializable id){
        return (Dept)currentSession().load(Dept.class,id);
    }

    public void save(Dept dept){
        currentSession().save(dept);
    }

    //删除
    public void delete(Dept dept){
        currentSession().delete(dept);
    }

    //修改
    public void update(Dept dept){
        currentSession().update(dept);
    }
}
